package com.qfjy.controller;

import com.qfjy.serivce.VideoInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Classname VideoInfoController
 * @Author guoweixin
 * @Description TODO
 * @Date 2021/3/25 14:12
 * @Created by Administrator
 */
@RequestMapping("videoInfo")
@Controller
@Slf4j
public class VideoInfoController {

    @Autowired
    private VideoInfoService videoInfoService;

    @GetMapping("{pcode}")    // localhost:8085/videoInfo/20111234324
    @ResponseBody
    public String selectVideoInfoByPcode(@PathVariable String pcode){
        return videoInfoService.selectVideoInfoByPcode(pcode);
    }
}
